import java.util.Date;

public class MilkDrink extends Product{
    String flavor;
    String sugar;

    public MilkDrink(String code, String description, double price, Date productionDate, String shelfLife, String flavor, String sugar) {
        super(code, description, price, productionDate, shelfLife);
        this.flavor = flavor;
        this.sugar = sugar;
    }

    public String getFlavor() {
        return flavor;
    }

    public String getSugar() {
        return sugar;
    }

    @Override
    public String toString() {
        return "MilkDrink{" +
                "flavor='" + flavor + '\'' +
                ", sugar='" + sugar + '\'' +
                ", code='" + code + '\'' +
                ", description='" + description + '\'' +
                ", price=" + price +
                ", productionDate=" + productionDate +
                ", shelfLife='" + shelfLife + '\'' +
                '}';
    }
}
